<?php
require './Home/Controller/Controller.php ';
require './Home/Model/DetailModel.php ';
class DetailController extends Controller{
	function __Construct(){
		parent::__Construct();
	}
	function detail(){
		$id=$_GET['id'];
		//echo $id;
		$model=new DetailModel();
		$ad=$model->getVideosInfo($id);
		$adminid=$ad['uploadadmin'];
		$this->assign('info',$model->getVideosInfo($id));
		$this->assign('admin',$model->getAdmin($adminid));

		$this->assign('uploadadmin',$model->getVideosInfo($uploadadmin));
		
		$this->display(); 
	}

}
?>